#ifndef __MAINWIN_H__
#define __MAINWIN_H__

#include <QtWidgets/QMainWindow>
#include "ui_main_window.h"
#include "qwt_dial_needle.h"
#include <vector>
#include <string>
//#include "selecteui.hpp"
#include "tabRviz.h"
#include "tabNavPath.h"
#include "../builder.h"
#include <QTabWidget>

class MainWindow : public QMainWindow {
Q_OBJECT

public:
	MainWindow(int argc, char** argv, QWidget *parent = 0);
	~MainWindow();

	void closeEvent(QCloseEvent *event); // Overloaded function

Q_SIGNALS:
        void slider_oper_signals(float val);


private:
  Ui::MainWindowDesign ui;//界面
  QwtDialSimpleNeedle *dial_needle_;//界面的仪表指针
  std::vector<Tab> tab_name_v_;
  std::vector<TabBase*> tab_ptr_v_;
  Builder* builder_;
  TabRviz *rviz_ui;
  TabNavPath *nav_path_ui;

private:
  void initWork();
  void loadUi();//添加界面元素
  void loadTab();

};


#endif // gui_qt_demo_MAIN_WINDOW_H
